package cn.org.donald.framework.pojo.dto;

import cn.org.donald.framework.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * @author ： Donald
 * @date ： 2020/10/24 16:58
 * @description：
 */
public class CodeBuilder extends BaseModel {

    @ApiModelProperty(value = "作者")
    @NotBlank(message = "作者名字不能为空")
    private String author = "Donald";

    @ApiModelProperty(value = "表名,多个用英文逗号\",\"分隔")
    @NotBlank(message = "表名不能为空")
    private String tableName;

    public CodeBuilder() {
    }

    public CodeBuilder(String author, String tableName) {
        this.author = author;
        this.tableName = tableName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
}
